<template>
	<view>
		<view class="top-nav">
			<u-navbar height="50" back-icon-color="#333"  :border-bottom="false"
				title-color="#fff" title-size="36">
			</u-navbar>
		</view>
		<view class="payInfo">
			<view class="title">
				<view class="pic">
					<image src="/static/weixinLogo.png" mode="widthFix" style="width: 42rpx; height: 42rpx;"></image>
				</view>
				<view class="ct">
					支付成功
				</view>
			</view>
			<view class="logo">
				<image src="/static/logo.png" mode="widthFix" style="width: 90rpx;height: 90rpx;"></image>
			</view>
			<view class="name">
				<span>小程优购</span> <span class="icon"></span>
			</view>
			<view class="price">
				<span class="icon">￥</span> <span>38.00</span>
			</view>
			<view class="complete" @click="switchTo">
				完成
			</view>
		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				
			}
		},
		methods: {
			switchTo(){
				uni.switchTab({
					url:'/pages/home/home'
				})
			}
		}
	}
</script>

<style lang="scss" scoped>
	.payInfo{
		width: 400rpx;
		margin: 200rpx auto;
		display: flex;
		flex-direction: column;
		justify-content: center;
		align-items: center;
	}
	.title{
		display: flex;
		align-items: center;
		font-size: 32rpx;
		font-family: Source Han Sans CN;
		font-weight: bold;
		margin-top: 40rpx;
		color: #6BC665;
		line-height: 48rpx;
		.pic{
			margin-right: 12rpx;
		}
	}
	.logo{
		width: 90rpx;
		height: 90rpx;
		overflow: hidden;
		margin: 30rpx auto;
	}
	.name{
		font-size: 36rpx;
		font-family: Source Han Sans CN;
		font-weight: 400;
		color: #1A1A1A;
		line-height: 48rpx;
		display: flex;
		align-items: center;
		.icon{
			display: inline-block;
			width: 36rpx;
			height: 36rpx;
			background-image: url('/static/arrow.png');
			background-size: cover;
			background-repeat: no-repeat;
			margin-left: 12rpx;
		}
	}
	.price{
		font-size: 60rpx;
		font-family: Source Han Sans CN;
		font-weight: bold;
		margin-top: 40rpx;
		color: #1A1A1A;
		text-align: center;
		line-height: 48rpx;
		.icon{
			font-size: 30rpx;
		}
	}
	.complete{
		position: absolute;
		bottom: 40rpx;
		left:205rpx ;
		width: 340rpx;
		height: 100rpx;
		background: #F2F2F2;
		border-radius: 10rpx;
		text-align: center;
		line-height: 100rpx;
		font-size: 36rpx;
		font-family: Source Han Sans CN;
		font-weight: bold;
		color: #6BC665;
	}
	
	

</style>
